import request from '@/utils/request'

export function fetchList(query) {
  return request({
    url: '/Gongg/getList',
    method: 'get',
    params: query
  })
}

export function createArticle(data) {
  return request({
    url: '/Gongg/getAdd',
    method: 'post',
    data
  })
}

export function getUserList(data) {
  return request({
    url: '/Users/getUserList',
    method: 'post',
    data
  })
}



export function getDetails(data) {
  return request({
    url: '/Gongg/getDetail',
    method: 'post',
    data
  })
}

export function getDel(data) {
  return request({
    url: '/Gongg/getDel',
    method: 'post',
    data
  })
}
//修改公告信息
export function updateArticle(data) {
  return request({
    url: '/Gongg/getEdit',
    method: 'post',
    data
  })
}
